package hmis.pos.Repository;

import hmis.pos.Base.BaseRepository.BaseRepository;
import hmis.pos.Entity.OrderDetail;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface OrderDetailRepository extends BaseRepository<OrderDetail> {

    @Query(value = "select * from orderdetail where orderid = ?1", nativeQuery = true)
    List<OrderDetail> findByOrderId(String orderid);

    //根据订单号删除订单明细
    boolean deleteByOrderid(String orderid);
}
